

system/fonksiyon.php yi an alttakini bulun

function sed_parse($text, $parse_bbcodes=TRUE, $parse_smilies=TRUE, $parse_newlines=TRUE)

stne Ekleyin

//////////////////////////////////////////////////////////////////////////////////////////
function sed_highlight_bbcode($code, $language){
	$find1 = array('&amp;', '&#123;', '&lt;', '&gt;', '&#036;', '&#039;', '&quot;', '&#92;', '&amp;amp;', '&amp;nbsp;');
	$replace1 = array('&', '{', '<', '>' , '$', '\'', '"', '\\', '&amp;', '&nbsp;');	
	$code = str_replace($find1, $replace1, $code);
	
	include_once('datas/geshi/geshi.php');
	$geshi = new GeSHi($code, $language);
	$geshi->set_header_type(GESHI_HEADER_NONE);
	//$geshi->enable_line_numbers(GESHI_FANCY_LINE_NUMBERS, 1); // Comment this line to remove the line numbers

	$tabs = 4;
	$geshi->set_tab_width($tabs);
	$code = $geshi->parse_code();
	$code = preg_replace('/&amp;#([0-9]+);/', '&#$1;', $code);
	$code = str_replace(array('[', ']', "\n"), array('[', ']', ''), $code);

return $code;
}


///////////////////////////////////////////////////////////////////////////////////

Alttakini bulun

if ($parse_smilies && is_array($sed_smilies))

stne Ekleyin.

////////////////////////////////////////////////////////////////////////////////
////Geshi Highlighter////
		$hcode = array();
		$unique_key = $sys['unique'];
		$jj = 10000;
		$p1 = 1;
		$p2 = 1;
		while ($p1>0 && $p2>0 && $jj<10031)
			{
			$jj++;

			$p1 = strpos($text, '[highlight=');
			$p2 = strpos($text, '[/highlight]');
			preg_match("#\[highlight=(.*?)\](.*?)\[\/highlight\]#se", $text, $matches);
			$language = $matches[1];
			$lang_lenght = strlen($language);
			$language = ($language=='html') ? 'html4strict' : $language;

			if ($p2>$p1 && $p1>0)
				{
				$id = '**'.$jj.$unique_key.'**';
				$hcode[$id]= substr ($text, $p1+12+$lang_lenght, ($p2-$p1)-12-$lang_lenght);
				$hcode_len = strlen($hcode[$id])+24+$lang_lenght;
				$hcode[$id] = sed_highlight_bbcode($hcode[$id], $language);
				$hcode[$id] = "<div class=\"codetitle\">".strtoupper($language)." ".$L['bbcodes_code'].":</div>
						<div class=\"code\">".trim($hcode[$id])."</div>";
				$text = substr_replace($text, $hcode[$id], $p1, $hcode_len);
				}
			}			
			
		}

////////////////////////////////////////////////////////////////////////////

Daha sonra Dosya ierisindeki geshi dosyasn datas ierisine ykleyiniz.

leme Devam Ediyoruz....

Alttakini Bulun.

function sed_bbcode_autourls($text)
{

$text = ' '.$text;
$text = preg_replace("#([\n ])([a-z0-9]+?)://([^\t \n\r]+)#i", "\\1[url]\\2://\\3[/url]", $text);
$text = preg_replace("#([\n ])([a-z0-9-_.]+?@[A-z0-9-]+\.[^,\t \n\r]+)#i", "\\1[email]\\2[/email]", $text);

Hemen bu satrlarn altna ekleyin.

global $usr;
if($usr['maingrp'] > 0)
$text = preg_replace('#\[/?hide\]#', '', $text);
else
$text = preg_replace('#\[hide].*?\[/hide]#s', '<div><b><font color=\"ff0000\">Gizli erik. Ltfen Giri Yapnz.</font></b></div>', $text);

Alttakini bulun

'[quote]' => '<blockquote>'.$L['bbcodes_quote'].'<hr />',
	'[/quote]' => '<hr /></blockquote>',
	'[br]' => '<br />',

Altna Ekleyin

'[h1]' => '<h1>',
	'[/h1]' => '</h1>',
	'[h2]' => '<h2>',
	'[/h2]' => '</h2>',
	'[h3]' => '<h3>',
	'[/h3]' => '</h3>',
	'[h4]' => '<h4>',
	'[/h4]' => '</h4>',
	'[h5]' => '<h5>',
	'[/h5]' => '</h5>',
'[h6]' => '<h6>',
	'[/h6]' => '</h6>',
	'[size= xx-small]' => '<span style="font-size:xx-small">',
'[/size]' => '</span>',
	'[size= x-small]' => '<span style="font-size:x-small">',
'[/size]' => '</span>',
	'[size= smaller]' => '<span style="font-size:small">',
	'[size= medium]' => '<span style="font-size:medium">',
'[/size]' => '</span>',
	'[size= large]' => '<span style="font-size:large">',
'[/size]' => '</span>',
	'[size= x-large]' => '<span style="font-size:x-large">',
'[/size]' => '</span>',
	'[size= xx-large]' => '<span style="font-size:xx-large">',
	'[/size=]' => '</span>',
'[align=right;]' => '<div style="text-align:right;">',
'[/align=right;]' => '</div>',
'[align=left;]' => '<div style="text-align:left;">',
'[/align]' => '</div>',
'[align=center;]' => '<div style="text-align:center;">',
'[/center]' => '</div>',
'[list=1][li]' => '<li>1. ',
'[/list]' => '</li>',
'[li]' => '<li>',
'[/li]' => '</li>',
'[pre]' => '<span style="color:#171A97">',
	'[/pre]' => '</span>',

Alttakini bulun

'[more]' => ''
		);

Altna Ekleyin.

foreach($bbcodes as $bbcode => $bbcodehtml)
	$text = str_replace($bbcode,$bbcodehtml,$text);

	// Tables
	$bbcodes = array(
	'[table]' => '<table>',
	'[/table]' => '</table>',
'[tbody]' => '<tbody>',
	'[/tbody]' => '</tbody>',
'[thead]' => '<thead>',
'[/thead]' => '</thead>',
'[caption]' => '<caption>',
'[/caption]' => '</caption>',
'[th scope=col]' => '<th scope=col>',
'[/th scope=col]' => '</th scope=col>',
	'[tr]' => '<tr>',
	'[/tr]' => '</tr>',
	'[td]' => '<td>',
	'[/td]' => '</td>',
	'[th]' => '<th>',
	'[/th]' => '</th>',
'[s]' => '<s>',
	'[/s]' => '</s>',
'[font= Comic Sans MS]' => '<font face="comic sans ms">',
'[/font]' => '</font>',
'[font= Arial]' => '<font face="arial">',
'[/font]' => '</font>',
'[font= Verdana]' => '<font face="Verdana">',
'[/font]' => '</font>',
'[font= Courier New]' => '<font face="Monotype Corsiva">',
'[/font]' => '</font>',
'[font= Times New Roman]' => '<font face="Times New Roman">',
'[/font]' => '</font>',
'[font= Tahoma]' => '<font face="tahoma">',
'[/font]' => '</font>',
	);

lemler Bitmitir Hayrl olsun Bunlar Fonksiyon.php de kalabilir sorun olmaz.

Eklentiyi Kurdukdan sonra Herey bitmitir.

Sadece Bir ka fonksiyon Eksik onlarda gereksiz oldugu iin eklemedim ve birde Renk paletleri almyor bilginiz olsun Cotonti de de sadece Arka plan rengi ekleniyor ve eklenen yazda sorun oluyor Alttaki gibi Cotonti den alntdr alttaki metin.

[color= rgb(255, 0, 0)]dgxchgxchbxh[/color] byle bir sorun oluyor coton ti dede bu nedenle Bu eklentide de Kullanmanza gerek yok imdilik.

Dier fonksiyonlar sorunsuz almaktadr..

Hayrl olsun..
	

